//
//  HomeGridCell.m
//  AnimationRecommend
//
//  Created by ljm on 2017/2/15.
//  Copyright © 2017年 ljm. All rights reserved.
//

#import "HomeGridCell.h"

@interface HomeGridCell()

@end

@implementation HomeGridCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
                
        _titleLabel = [[UILabel alloc]initWithFrame:AAdaptionRect(0, 0, kBaseWidth, 100)];
        _titleLabel.font = [UIFont fontWithName:@"JMiMi" size:40*AAdaptionWidth()];
        //_titleLabel.font = AAFont(40);
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.textColor = [UIColor cz_colorWithHex:0x4f4f4f];
        [self.contentView addSubview:_titleLabel];
        
//        NSArray *familyNames =[[NSArray alloc]initWithArray:[UIFont familyNames]];
//        NSArray *fontNames;
//        NSInteger indFamily, indFont;
//        NSLog(@"[familyNames count]===%ld",[familyNames count]);
//        for(indFamily=0;indFamily<[familyNames count];++indFamily)
//            
//        {
//            NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
//            fontNames =[[NSArray alloc]initWithArray:[UIFont fontNamesForFamilyName:[familyNames objectAtIndex:indFamily]]];
//            
//            for(indFont=0; indFont<[fontNames count]; ++indFont)
//                
//            {
//                NSLog(@"Font name: %@",[fontNames objectAtIndex:indFont]);
//                
//            }  
        
//        }
        
        //等高等宽
//        _imageview = [[UIImageView alloc]initWithFrame:AAdaptionRect(0, CGRectGetMaxY(self.titleLabel.frame), kBaseWidth, kBaseWidth)];
        _imageview = [[UIImageView alloc]initWithFrame:AAdaptionRect(30, 30, kBaseWidth - 60, kBaseWidth - 60)];
        [self.contentView addSubview:_imageview];
        
//        _contentLabel = [[UILabel alloc]initWithFrame:AAdaptionRect(30, CGRectGetMaxY(self.imageview.frame) + 30, kwidth - 30*2, AAdaption(100))];
        _contentLabel = [[UILabel alloc]initWithFrame:AAdaptionRect(30, 0, kBaseWidth - 30*2, 200)];
        _contentLabel.font = AAFont(20);
        _contentLabel.numberOfLines = 0;
        _contentLabel.textAlignment = NSTextAlignmentCenter;
        _contentLabel.textColor = [UIColor cz_colorWithRed:0 green:0 blue:0];
        _contentLabel.alpha = 0.8;
        [self.contentView addSubview:_contentLabel];
        

    }
    return self;
}



@end
